package USer;

import Operation.*;
import book.BookList;

import java.util.Scanner;

public class Normaluser extends User{

   public Normaluser(String name) {
        super(name);
        ExitOperation exitOperation=new ExitOperation();
        FindOperation findOperation=new FindOperation();
        BrrowOperation brrowOperation=new BrrowOperation();
        ReturOperation returOperation=new ReturOperation();
        ShowOperation showOperation=new ShowOperation();
      this.ioPeration=new IOperation[]{
              exitOperation,
              findOperation,
              brrowOperation,
              returOperation,
              showOperation
      };
    }

    String name=getName();

    @Override
    public void mnum() {
        Scanner scanner=new Scanner(System.in);
        System.out.println("hello "+name+" 欢迎来到图书系统");
        System.out.println("********************");
        System.out.println("1.查找图书");
        System.out.println("2.借阅图书");
        System.out.println("3.归还图书");
        System.out.println("4.显示图书");
        System.out.println("0.退出系统");
        System.out.println("********************");

    }

}
